module.exports = {
    devServer: {
        proxy: {
            //跨域代理
            '/api': {
                //target:"代理服务器的目标地址"
                target: 'https://pvp.qq.com/',
                //是否允许跨域
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    "^/api": ""
                }
            }
        }
    }
}